package org.internet.tcp;

import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;

public class ClientDemo {
    public static void main(String[] args) throws IOException {
        InetAddress address = InetAddress.getLocalHost();
        Socket s = new Socket(address, 10000);
        OutputStream out = s.getOutputStream();
        String message = "broadcast";
        out.write(message.getBytes());
        s.close();
    }
}
